<template>
	<view class="pushLiver">
		拉流
		<video src="rtmp://192.168.43.205:1935/live/test1" controls></video>
		pushLiverpushLiverpushLiverpushLiver
	</view>
</template>

<script>
	export default {
		name: 'pushLiver',
		data() {
			return {

			}
		},
		onLoad() {
			this.init()
		},
		methods: {
			init() {
				const currentWebview = this.$mp.page.$getAppWebview()
				var pusher = plus.video.createLivePusher("", {
					url: 'rtmp://192.168.43.205:1935/live/rfBd56ti2SMtYvSgD5xAV0YU99zampta7Z7S575KLkIZ9PYk',
					top: '100px',
					left: '0px',
					width: '100%',
					height: '300px',
					position: 'static'
				});
				currentWebview.append(pusher);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pushLiver {}
</style>
